package com.xuelang.pipeline.artifact.client.resource.dto;

import lombok.Data;

import jakarta.validation.constraints.NotEmpty;


/**
 * 制品仓库-包 查询条件类
 *
 * @author xiwen.zxg
 * @since 2024/5/27
 */
@Data
public class RepositoryPackageQuery {

    /**
     * 制品仓库uuid不为空
     */
    @NotEmpty(message = "制品仓库uuid不为空")
    private String artifactUuid;
    /**
     * 组件格式不正确.取值范围为: apt,bower,cocoapods,conan,docker,gitlfs,go,helm,maven2,npm,nuget,p2,pypi,r,raw,rubygems,yum.
     */
    //@ValidEnum(enumClass = Nexus3V1Enum.RepositoryFormatEnum.class, message = "组件格式不正确.取值范围为: apt,bower,cocoapods,conan,docker,gitlfs,go,helm,maven2,npm,nuget,p2,pypi,r,raw,rubygems,yum.")
    //private String format;
    /**
     * 其他多选查询条件，仓库实例名称、镜像名称、包名、包groupId、包nameId
     */
    private String condition;
    /**
     * 开始日期-格式：yyyy-MM-dd
     */
    private String startDate;
    /**
     * 结束日期-格式：yyyy-MM-dd
     */
    private String endDate;

}
